<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="pragma" content="no-cache"> 
<meta http-equiv="cache-control" content="no-cache, must-revalidate"> 
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
<title>Reset Card</title>
<script src="${pageContext.request.contextPath}/script/jQuery1.8.2.js" type="text/javascript"></script>
<script src="${pageContext.request.contextPath}/script/formcheck.js" type="text/javascript"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#btnSb").click(function(){
		if(validateRequiredFields($("#resetform")[0])==true){
			var url="${pageContext.request.contextPath}/customer/reset.do?type=card&tmp="+Math.floor(Math.random() * 100);
			$("#resetform").attr("action",url);
			$("#resetform").submit();
		}
	});
});
</script>
</head>
<body>
<body>
<a href="javascript:history.back()">Back to main</a>
<div style="color:red;">
		${error}
	</div>
	<div style="color:blue;">
		${info}
	</div>
<form id="resetform" method="post">
		<table>
			<tr>
				<td>Old CardNo:</td>
				<td>${cardno}</td>
			</tr>
			<tr>
				<td>New CardNo:</td>
				<td><input type="text" name="cardno" alt="New CardNo#true" /></td>
			</tr>
			<tr>
				<td><input id="btnSb" type="button" value="Submit" /><input
					type="reset" value="Reset" /></td>
			</tr>
		</table>
	</form>
</body>
</body>
</html>